package com.yanchangapp.adapter._n_manage;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanchangapp.R;
import com.yanchangapp.model.bean.OperateBookBean;

import java.util.List;

/**
 * Created by apple on 2019-10-10.
 * description:作业指导书条目adapter
 */
public class OperateBookAdapter extends BaseQuickAdapter<OperateBookBean, BaseViewHolder> {
    public OperateBookAdapter( @Nullable List<OperateBookBean> data) {
        super(R.layout.item_operate_book, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OperateBookBean item) {
        int position =  helper.getAdapterPosition()+1;
        helper.setText(R.id.tvOperateDes,position+"."+item.getContent());
    }
}
